#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
	int x,y;
	cin>>x>>y;
	double avg=(x*(double)87+y*double(85))/(x+y);
	printf("%.4lf",avg);
	return 0;
}
